package com.lwlk.zdk.mapper.T;

import com.lwlk.zdk.model.sys.sysUser;
import com.lwlk.zdk.model.T.TDisPlatform;
import com.lwlk.zdk.model.T.TDisPlatformExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TDisPlatformMapper {
    int countByExample(TDisPlatformExample example);

    int deleteByExample(TDisPlatformExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TDisPlatform record);

    int insertSelective(TDisPlatform record);

    List<TDisPlatform> selectByExample(TDisPlatformExample example);

    TDisPlatform selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TDisPlatform record, @Param("example") TDisPlatformExample example);

    int updateByExample(@Param("record") TDisPlatform record, @Param("example") TDisPlatformExample example);

    int updateByPrimaryKeySelective(TDisPlatform record);

    int updateByPrimaryKey(TDisPlatform record);

    String selectById(@Param("platformId") Integer platformId);

    List<Map<String, Object>> searchAll();

    List<Map<String, Object>> selectByPlatformId(@Param("platformId") Integer platformId);

    String selectpId(@Param("pId") Integer pId);

    int joinCount(@Param("roleType") Integer roleType,@Param("areaCode")Integer areaCode);

    Integer selectMaxPlatformId();

    int selectAccount(@Param("account") String account);

    List<Map<String,Object>> selectByPrimaryKeyDetails(Integer platformId);

    Integer updateDelFlagStatus(@Param("platformId") Integer platformId);

    List<Map<String,Object>> searchChoice(TDisPlatform platformCode);

    String selectDimPlatformName(@Param("platformName") String platformName);

    List<Map> selectPlatformIdsList(@Param("pName") String pName);

    List<Map<String, Object>> selectAll(@Param("platformIds") Integer platformIds);

    List<sysUser> selectPlatformMessage(@Param("vehicleId") Integer vehicleId);

    String selectAccessCode(@Param("platformId") Integer platformId);

    List<Map<String, Object>> platformDetail(@Param("platformId") Integer platformId);

    List<Map<String, Object>> selectOne(@Param("platformId") Integer platformId);

    String selectBypId(@Param("pId") Integer pId);

    List<Map<String, Object>> selectPlatform(@Param("platformCode") String platformCode);

    List<Map<String, Object>> searchUser(@Param("areaCode") String areaCode,@Param("platformId")Integer platformId);

    List<Map<String, Object>> searchNotAdmin(@Param("areaCode") String areaCode, @Param("platformId") Integer platformId);

    List<Map<String, Object>> selectJoinPlatform(@Param("platformName") String platformName,@Param("platformType") Integer platformType);

    List<Map<String, Object>> selectPlatformList();

    List<Map<String, Object>> selectByAreaCode(@Param("regionCode") String regionCode, @Param("platformId") Integer platformId);

    List<Map<String, Object>> searchFQ();

    int selectJoinPlatformCount();

    List<Map<String, Object>> selectPlatformName(@Param("platformName") String platformName);

    List<Map<String, Object>> selectPlatMenuList(@Param("regionCode") String regionCode);


    List<Map<String,Object>> selectPlatformMessageList();
}